<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>尚学堂学员论坛--注册</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<Link rel="stylesheet" type="text/css" href="style/style.css" />
<script language="javascript">
	function check() {
		if (document.regForm.uName.value == "") {
			alert("用户名不能为空");
			return false;
		}
		if (document.regForm.uPass.value == "") {
			alert("密码不能为空");
			return false;
		}
		if (document.regForm.uPass.value != document.regForm.uPass1.value) {
			alert("2次密码不一样");
			return false;
		}
	}
</script>
<script type='text/javascript' src='/bbs/dwr/interface/dwr.js'></script>
<script type='text/javascript' src='/bbs/dwr/engine.js'></script>
<script type='text/javascript' src='/bbs/dwr/util.js'></script>
<script type="text/javascript">
	function checkUserExist(uname) {
		dwr.checkUserExist(uname, function(isExist) {
			if (isExist) {
				DWRUtil.setValue("checkUname", "用户名已存在！");
			} else {
				DWRUtil.setValue("checkUname", "");
			}
		});
	};

	function getProvince() {
		dwr.getProvince(function(provinces) {
			DWRUtil.removeAllOptions("province");
			DWRUtil.addOptions("province", provinces, "id", "name");
		});
	}

	function getCity(father) {
		dwr.getCity(father, function(citys) {
			DWRUtil.removeAllOptions("city");
			DWRUtil.addOptions("city", citys, "id", "name");
		});
	}
</script>
</HEAD>
<BODY onload="getProvince()">
	<%@include file="_head.jsp"%>
	<!--      导航        -->
	<DIV>
		&gt;&gt;<B><a href="index.html">论坛首页</a></B>
	</DIV>
	<!--      用户注册表单        -->
	<DIV class="t" style="MARGIN-TOP: 15px" align="center">
		<FORM name="regForm" onSubmit="return check()" action="user"
			method="post">
			<div style="width: 300px;text-align: left">
				<input type="hidden" name="method" value="register"> <br />用户名
				&nbsp; <INPUT class="input" tabIndex="1" type="text" maxLength="20"
					size="35" name="uName" onblur="checkUserExist(this.value)"
					style="width: 150px"> <span id="checkUname"
					style="color: red"></span> <br />密&nbsp;&nbsp;&nbsp;码 &nbsp; <INPUT
					class="input" tabIndex="2" type="password" maxLength="20" size="40"
					name="uPass" style="margin-top:2px; width:150px"> <br />重复密码
				&nbsp; <INPUT class="input" tabIndex="3" type="password"
					maxLength="20" size="40" name="uPass1"
					style="margin-top:2px; width:150px"> <br />所属区域 &nbsp; <select
					id="province" class="input" style="margin-top:2px" name="province"
					onchange="getCity(this.value)">
					<option>--请选择省份--</option>
				</select> <select id="city" class="input" name="city">
					<option>--请选择城市--</option>
				</select>
			</div>
			<br />性别 &nbsp; 男<input type="radio" name="gender" value="1"
				checked="checked" /> 女<input type="radio" name="gender" value="2">

			<br />请选择头像 <br />
			<div class="t" style="WIDTH:50%">
				<img src="image/head/1.gif" /><input type="radio" name="head"
					value="1.gif" checked="checked"> <img
					src="image/head/2.gif" /><input type="radio" name="head"
					value="2.gif"> <img src="image/head/3.gif" /><input
					type="radio" name="head" value="3.gif"> <img
					src="image/head/4.gif" /><input type="radio" name="head"
					value="4.gif"> <img src="image/head/5.gif" /><input
					type="radio" name="head" value="5.gif"> <BR /> <img
					src="image/head/6.gif" /><input type="radio" name="head"
					value="6.gif"> <img src="image/head/7.gif" /><input
					type="radio" name="head" value="7.gif"> <img
					src="image/head/8.gif" /><input type="radio" name="head"
					value="8.gif"> <img src="image/head/9.gif" /><input
					type="radio" name="head" value="9.gif"> <img
					src="image/head/10.gif" /><input type="radio" name="head"
					value="10.gif"> <BR /> <img src="image/head/11.gif" /><input
					type="radio" name="head" value="11.gif"> <img
					src="image/head/12.gif" /><input type="radio" name="head"
					value="12.gif"> <img src="image/head/13.gif" /><input
					type="radio" name="head" value="13.gif"> <img
					src="image/head/14.gif" /><input type="radio" name="head"
					value="14.gif"> <img src="image/head/15.gif" /><input
					type="radio" name="head" value="15.gif"> <br /> 本地头像&nbsp;<input
					type="file" class="input" name="fileName" size="50"
					style="margin-top:2px;margin-bottom:4px">

			</div>
			<INPUT class="btn" tabIndex="4" type="submit" value="注 册"> <input
				class="btn" tabIndex="4" type="reset" value="重 置">
		</FORM>
	</DIV>
	<!--      声明        -->
	<BR>
	<CENTER class="gray">版权所有 2005-2011 北京尚学堂科技有限公司</CENTER>
</BODY>
</HTML>